/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bradley.principals.core.lsp.obey;

/**
 *
 * @author Balla
 */
public class CurrentAccount extends Account{

    public CurrentAccount(int balance, int period) {
        super(balance, period);
    }

    @Override
    public boolean closeAccount() {
        if (balance > 0)
            return true;
        else
            return false;
    }
    
    public boolean openBalance(int balance)
    {
        this.balance = balance;
        return true;
    }   
}
